package models;

import play.data.validation.Required;
import play.db.jpa.Model;

import javax.persistence.Column;
import javax.persistence.Entity;

@Entity
public class RoleEchelle extends Model{
	
	@Required
	@Column(unique=true)
	public String id_roleechelle;
	
	@Required
	public String nom;
	
	public String toString(){
		return this.nom;
	}
	
	public boolean equals(Role r){
		return r.getNom()==(this.nom);
	}
}
